#!/bin/bash
set -ex

SCRIPTROOT=$(realpath "$(dirname "${BASH_SOURCE[0]}")")

[ ! -d build ] && mkdir build && cd build
cd build

cmake .. \
  -DCMAKE_INSTALL_PREFIX=${SCRIPTROOT}/install
make -j`nproc` VERBOSE=1
#make install
make test

./src/funcGraph ./src/funcGraph -s main -S "(clipp)+" --noplt --nostd
